package com.asset.modules.common.model;

import com.asset.modules.assets.model.Asset;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "excel下载接口参数", description = "提供两种下载方式：1.选择分页方式下载; 2.勾选所需下载特定内容下载；两者不容许同时出现")
public class DownloadBean {

    @ApiModelProperty(value = "文件名")
    private String fileName;

    @ApiModelProperty(value = "sheet名称")
    private String sheetName;

    @ApiModelProperty(value = "导出数据开始ID")
    private int startPage;

    @ApiModelProperty(value = "导出数据结束ID")
    private int endPage;

    @ApiModelProperty(value="页面尺寸")
    private int size;

    @ApiModelProperty(value = "查询对象")
    private String anything;

    @ApiModelProperty(value = "导出结果集，用户下载选择的特定内容")
    private List<Asset> data;
}
